import axios from 'axios'

import {base} from './zxy_api'

// 公交相关接口
export const getBusRoute = (params) => { return axios.get(`${base}/app/bus-route/query`, {params}) }
export const busLineListByStop = (params) => { return axios.get(`${base}/app/bus-route/query-by-stop`, {params}) }
export const busRouteDetail = params => { return axios.get(`${base}/app/bus-stop/find-by-route/` + params) }
export const getStopDetail = params => { return axios.get(`${base}/app/bus-stop/detail/` + params) }
export const busLineByTwoId = (startStopId, endStopId) => { return axios.get(`${base}/app/bus-line/`+ startStopId  +`/` + endStopId) }
export const allBusStopByMap = (params) => { return axios.get(`${base}/app/bus-stop/find-all-by-map`, {params}) }

// 火车相关接口
export const getSelectDirection = (params) => { return axios.get(`${base}/app/train/select-direction-by-station`, {params}) }
export const getStationInfo = (params) => { return axios.get(`${base}/app/train/select-by-station`, {params}) }
export const allTrainStationByMap = (params) => { return axios.get(`${base}/app/train/select-all-by-map`, {params}) }
export const getTrainTimes = (params) => { return axios.get(`${base}/app/train/select-by-schedule`, {params}) }

// 电影相关接口
export const showingList = (params) => { return axios.get(`${base}/app/movie/now-showing`, {params}) }
export const comingShowList = (params) => { return axios.get(`${base}/app/movie/coming-soon`, {params}) }
export const searchCimenaList = (params) => { return axios.get(`${base}/app/cinema/query?`+ params) }
export const getCimenaDetail = (params) => { return axios.get(`${base}/app/cinema/detail/`+ params) }
export const getMovieTime = (params) => { return axios.get(`${base}/app/cinema/showtime?` + params) }
export const movieDetail = (params) => { return axios.get(`${base}/app/movie/detail/` + params) }
